import { createRouter, createWebHistory } from 'vue-router'
import LoginPage from '../components/LoginPage.vue'
import SmartWear from '../components/SmartWear.vue'
import AdminDashboard from '../components/AdminDashboard.vue'
import UserManagement from '../components/UserManagement.vue'
import DeviceManagement from '../components/DeviceManagement.vue'
import SystemSettings from '../components/SystemSettings.vue'
import DataAnalysis from '../components/DataAnalysis.vue'
import SystemMonitor from '../components/SystemMonitor.vue'
import DealerSales from '../components/DealerSales.vue'

const routes = [
  { path: '/login', component: LoginPage },
  { path: '/', component: AdminDashboard },
  { path: '/smartwear', component: SmartWear },
  { path: '/admin', component: AdminDashboard },
  { path: '/user', component: UserManagement },
  { path: '/device', component: DeviceManagement },
  { path: '/settings', component: SystemSettings },
  { path: '/analysis', component: DataAnalysis },
  { path: '/monitor', component: SystemMonitor },
  { path: '/dealersales', component: DealerSales }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router